<!DOCTYPE html>
<html>
<head>
	<title>机械电子学院网站后台管理系统</title>
	<meta charset="utf-8"/>
	<link rel="stylesheet" type="text/css" href="{{base_url()}}Public/bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" href="{{base_url()}}Public/css/index.css">
	<script charset="utf-8" src="{{base_url()}}kindeditor/kindeditor-min.js"></script>
	<script charset="utf-8" src="{{base_url()}}kindeditor/php/upload_json.php"></script>
	<script charset="utf-8" src="{{base_url()}}kindeditor/plugins/autoheight/autoheight.js"></script>
	<script>
		 KindEditor.ready(function(K) {
		 		var options = {
		 			width : '100%',
		 			height : '200px',
		 			items : ['source', '|', 'undo', 'redo', '|', 'justifyleft', 'justifycenter', 'justifyright',
 							'justifyfull', '|', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
        					'italic', 'underline', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
        					'insertfile', 'table', 'hr','link', 'unlink', '|',],
        			autoHeightMode : true,
        			filterMode : false,
		 		}
                window.editor = K.create('textarea[name="Experience"]', options);
                window.editor = K.create('textarea[name="Research"]', options);
                window.editor = K.create('textarea[name="Description"]', options);
                window.editor = K.create('textarea[name="Prize"]', options);
                window.editor = K.create('textarea[name="SinglePage"]', options);
        });
	</script>
</head>
<body>
	<div class="navbar navbar-default navbar-fixed-top" style="background-color: #fff;border-color: #fff;">
		<div class="container">
			<div class="navbar-header">
				<a class="navbar-brand" href="#" style="font-size: 20px;">CloudCMS</a>
			</div>
			<div class="navbar-collapse collapse">
				<ul class="nav navbar-nav">
					<li {{IsActive('admin',$active)}}>
						<a href="{{site_url('category/admin')}}">后台首页</a>
					</li>
					<li {{IsActive('document',$active)}}>
						<a href="{{site_url('/document')}}">内容管理</a>
					</li>
					<li {{IsActive('category',$active)}}>
						<a href="{{site_url('/category')}}">栏目管理</a>
					</li>
					<li {{IsActive('user',$active)}}>
						<a href="{{site_url('/user')}}">用户管理</a>
					</li>
					<li {{IsActive('alumni',$active)}}>
						<a href="{{site_url('/alumni')}}">院友管理</a>
					</li>
					<li {{IsActive('message', $active)}}>
						<a href="{{site_url('/document/Judge?Id=104')}}">留言管理</a>
					</li>
				</ul>
				<ul class="nav navbar-nav navbar-right">
					<li>
						<a href="#">欢迎你，{{$username}}</a>
					</li>
					<li>
						<a href="{{site_url('admin/logout')}}">注销登陆</a>
					</li>
				</ul>
				<ul class="nav navbar-nav navbar-right">
					<li>
						<a href="{{base_url()}}" target="__blank" style="color:#3071a9">网站首页</a>
					</li>
				</ul>
			</div>
		</div>
	</div>
	<div class="container panel" style="margin-top: 70px;padding-bottom: 20px;min-height:580px;">
	{{if !empty($info)}}
	{{include file="admin/admin_info.tpl"}}
	{{/if}}
	{{block name='content'}}{{/block}}
	{{include file="admin/admin_modal.tpl"}}
	</div>
	<script src="{{base_url()}}Public/js/jquery-1.11.1.min.js"></script>
	<script src="{{base_url()}}Public/bootstrap/js/bootstrap.min.js"></script>
	<script src="{{base_url()}}Public/js/index.js"></script>
	    <script>
        function modal(href)
        {
        	$('#delete-url').attr('href',href);
            $('#myModal').modal();
        }
    </script>
	</body>
</html>
